<template>
  <div>
    <img src="../../assets/img/s1.webp">
    <button @click="loginSubmit" class="submit">登陆</button>
  </div>
</template>

<script>

import { setToken } from '@/utils/auth'

export default {
  name: 'Login',
  props: {
    msg: String
  },

  methods:{
    
    // 登陆操作
    loginSubmit(){
      // 本地存储token
      let token = '9527';
      setToken(token);
      // 替换路由处理
      this.$router.replace({
        path: '/'
      })
    }
  },


  setup(){

  }
}
</script>

<style lang="scss" scoped>


</style>
